package coffee.tigase.client;

import java.util.logging.Logger;

import org.jivesoftware.smack.ConnectionConfiguration;
import org.jivesoftware.smack.XMPPConnection;

public class XmppConnectionTest {

	private static final Logger log = Logger.getAnonymousLogger();
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		XMPPConnection conn = null;
		try {
			log.info("start...");
			ConnectionConfiguration config = new ConnectionConfiguration("192.168.1.126", 5222, "android");
			conn = new XMPPConnection(config);
			conn.connect();
			log.info("connect end...");
			conn.login("2166401", "1xxxx");
			log.info("login end...");
			System.out.println("ok");
		} catch (Exception e) {
			e.printStackTrace();
		}
		finally{
			conn.disconnect();
		}
	}

}
